﻿@model CmsAdminMediaContentModel

@{
    Layout = "~/admin/Templates/TelerikAdministration.cshtml";
    ResFile = "cms_Media";
}

<fieldset class="b-form">
    @using (Html.BeginForm("Edit", "CmsMediaContent", FormMethod.Post, new { enctype = "multipart/form-data" }))
    {
        <ol class="b-form__rows ul-reset g-clear">
            <li class="b-form__row g-clear">
                <label for="file">@_("New file")</label>
                <input type="file" name="file" id="file" />
            </li>
            <li class="b-form__row g-clear">
                @Html.LabelFor(m => m.Contents[0].Name, _("Name"))
                @Html.TextBoxFor(m => m.Contents[0].Name, new { @class = "text" })
            </li>
            <li class="b-form__row g-clear">
                @Html.LabelFor(m => m.Contents[0].Description, _("Description"))
                @Html.TextBoxFor(m => m.Contents[0].Description, new { @class = "text" })
            </li>
            <li class="b-form__row g-clear">
                @Html.LabelFor(m => m.Contents[0].MetaCode, _("Code"))
                @Html.TextBoxFor(m => m.Contents[0].MetaCode, new { @class = "text" })
            </li>
            <li class="b-form__row g-clear">
                @Html.LabelFor(m => m.MediaId, _("Folder"))
                @Html.DropDownListFor(m => m.MediaId, (SelectList)ViewBag.Folders)
            </li>
            <li class="b-form__row g-clear">
                @Html.LabelFor(m => m.Contents[0].BlockFromSearchEngines, _("Hide from search engines"))
                @Html.CheckBoxFor(m => m.Contents[0].BlockFromSearchEngines)
            </li>
            <li class="b-form__row b-form__row_buttons g-clear">     
                @Html.HiddenFor(m=>m.Id)           
                <input class="b-button" id="btnSave" name="btnSave" type="submit" value="@_("Save")" />             	
            </li>        
        </ol>
    }
</fieldset>